package com.ihr360.commons.lang;


import java.util.ArrayList;
import java.util.List;

public abstract class Ihr360NumberUtils {
    public static double fakeDouble2Double(int fakeDouble, int scale) {
        return fakeDouble * 1.0 / Math.pow(10, scale);
    }

    public static double fakeDouble2Double(double fakeDouble, int scale) {
        return fakeDouble * 1.0 / Math.pow(10, scale);
    }

    public static double fakeDouble2Double(long fakeDouble, int scale) {
        return fakeDouble * 1.0 / Math.pow(10, scale);
    }

    public static List<String> toList(Integer[] array) {
        List<String> strArray = new ArrayList<>(array.length);
        for (Integer y : array) {
            strArray.add(String.valueOf(y));
        }
        return strArray;
    }

    public static List<String> toListD(Double[] array) {
        List<String> strArray = new ArrayList<>(array.length);
        for (Double y : array) {
            strArray.add(String.valueOf(y));
        }
        return strArray;
    }
}